#include "tickcountrunnable.hpp"

TickCountRunnable::TickCountRunnable(QObject *parent) :
    QThread(parent)
{
    m_isRunning = false;
    m_waitInterval = 1;
}


void TickCountRunnable::stop()
{
    setIsRunning(false);
}


bool TickCountRunnable::getIsRunning()
{
    QMutexLocker locker(&m_mutex);

    return m_isRunning;
}


void TickCountRunnable::setIsRunning(bool state)
{
    QMutexLocker locker(&m_mutex);

    m_isRunning = state;
}
